<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      //es6引入新的 `  `
      //1.声明
      //   let str = `this is a str`;
      //   console.log(str, typeof str);

      //内容中可以直接出现换行符
      let str = `<ul>
                    <li>许晨阳</li>
                    <li>郭少</li>
                </ul>`;
      console.log(str);

      //变量拼接
      let lovest = "魏翔";
      let out = `${lovest}是个傻逼${lovest}`;
      console.log(out);
    </script>
  </body>
</html>
